﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OkTool.Excel
{
    [AttributeUsage(AttributeTargets.Property)]
    public class ExcelExport : System.Attribute
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string Value { get; }

        /// <summary>
        /// 导出排序先后: 数字越小越靠前（默认按 Java 类字段顺序导出）
        /// </summary>
        public int Sort { get; set; } = 0;

        /// <summary>
        /// 导出映射，格式如：0-未知;1-男;2-女
        /// </summary>
        public string Kv { get; set; } = "";

        /// <summary>
        /// 导出模板示例值（有值的话，直接取该值，不做映射）
        /// </summary>
        public string Example { get; set; } = "";

        public ExcelExport(string value)
        {
            Value = value;
        }
    }
}
